package comgame.entities.EquipmentEnum;

import java.util.ArrayList;

public enum SwordType implements EquipmentType {
    SWORD_1("普通剑", 7,0,0,0.05),
    SWORD_2("铁剑", 12,0,-1,0.10),
    SWORD_3("金剑", 17,1,-2,0.15),
    SWORD_4("钻石剑", 25,2,-3,0.20),
    SWORD_GHOST("幽灵剑", 40, 7, 5, 0.20),
    SWORD_PUMPKIN("无头骑士剑", 55, 17, 0, 0.25),
    SWORD_TERRAPRISMA("泰拉棱镜", 67, 27, 10, 0.30);

    private final String displayName;
    private final int attack;
    private final int defense;
    private final int speed;
    private final double critRate;

    SwordType(String displayName, int attack,int defense, int speed, double critRate) {
        this.displayName = displayName;
        this.attack = attack;
        this.defense = defense;
        this.speed = speed;
        this.critRate = critRate;
    }

    @Override
    public String getTypeCategory() {
        return "SWORD";
    }

    @Override
    public String getName() {
        return displayName;
    }

    @Override
    public ArrayList<Integer> getBaseValue() {
        return new ArrayList<Integer>(){{
            add(attack);
            add(defense);
            add(speed);
        }};
    }
    public int getAttack() {
        return attack;
    }
    public int getDefense() {
        return defense;
    }
    public int getSpeed() {
        return speed;
    }
    public double getCritRate() {
        return critRate;
    }
}
